package com.example.model;

import com.example.core.common.db.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * test_table 
 *
 * @author xh
 * @since 2020/10/02
 */
@Table(name = "test_table")
public class TestTable extends BaseModel {

    private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@Id
	@GeneratedValue(generator = "JDBC")
	@Column(name = "id")
	@JsonProperty("id")
	protected Long id;

	/**
	 * name
	 */
	@Column(name = "name")
	@JsonProperty("name")
	protected String name;

	/**
	 * value
	 */
	@Column(name = "value")
	@JsonProperty("value")
	protected String value;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

    @Override
    public String toString() {
        return "test_table{" +
                "id=" + id +
                ", name=" + name +
                ", value=" + value +
                ", createdTime=" + createdTime +
                ", modifiedTime=" + modifiedTime +
                ", deleted=" + deleted +
                '}';
    }

}
